/*
package com.lx.view;
import com.lx.controller.MainApp;
import com.lx.controller.MainController;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Button;
import javafx.scene.control.TextField;

import java.net.URL;
import java.util.ResourceBundle;
import java.util.logging.Level;
import java.util.logging.Logger;

public class LoginView implements Initializable {
    private static final Logger logger = Logger.getLogger(MainApp.class.getName());
    //跳转页面
    private MainController mainController;

    @FXML
    private Button login_button;

    @FXML
    private TextField login_username;

    @FXML
    private TextField login_password;

    public void loginButtonClick() {
        logger.log(Level.INFO, "输入用户名为：" + login_username.getText());
        logger.log(Level.INFO, "输入密    码为：" + login_password.getText());
        if("nikolazhang".equalsIgnoreCase(login_username.getText())
                && "123654".equalsIgnoreCase(login_password.getText())) {
            logger.log(Level.INFO, "登录成功！");
            mainController.goIndex();//跳转到主页面
        } else {
            logger.log(Level.WARNING, "用户名或密码错误！");
        }
    }

    @Override
    public void initialize(URL location, ResourceBundle resources) {
    }

    public void setApp(MainController mainController) {

        this.mainController = mainController;
    }
}

*/
